package me.magicall.test.backup;

import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;

public class Backup {

	@SuppressWarnings("null")
	void a() {
		final Method method = null;
		//下面这两行代码可以获得泛型方法返回值尖括号里面的具体类型!!!
		final ParameterizedType type = (ParameterizedType) method.getGenericReturnType();
		@SuppressWarnings("unused")
		final Class<?> acualType = (Class<?>) type.getActualTypeArguments()[0];
	}
}
